<?php
namespace app\home\controller;

use app\home\model\Article;
use think\Controller;

class Index  extends  Controller
{
    //首页
    public function index()
    {
        //东华政策  //最新资讯

        $article = new  Article();
        $zc1 = $article->_list(1);
        $zc2 = $article->_list(2);
        $zc3 = $article->_list(3);

        $this->assign('zc1',$zc1);
        $this->assign('zc2',$zc2);
        $this->assign('zc3',$zc3);
        return $this->fetch();
    }
    //列表
    public function lists()
    {
        return $this->fetch('liat_art');
    }
    //详情
    public function detail(){
        return $this->fetch('art_art');
    }
}
